package com.cts.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @author tongshengchen
 * @TableName blog_tag
 */
@TableName(value ="blog_tag")
@Data
@NoArgsConstructor
public class BlogTag implements Serializable {
    /**
     * 博客ID
     */
    @TableField(value = "blog_id")
    private Long blogId;

    /**
     * 标签ID
     */
    @TableField(value = "tag_id")
    private Long tagId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public BlogTag(Long blogId, Long tagId){
        this.blogId = blogId;
        this.tagId = tagId;
    }

}